#pragma once
#include <QWidget>
class QTableWidget;
class QComboBox;
class QPushButton;

class StudentManager : public QWidget {
    Q_OBJECT
public:
    explicit StudentManager(QWidget* parent = nullptr);

private slots:
    void onAdd();
    void onEdit();
    void onDelete();
    void refresh();
    void onClassFilterChanged(int index);

private:
    QTableWidget* m_table;
    QComboBox* m_classCombo;
    QPushButton *btnAdd, *btnEdit, *btnDel;
};
